import request from '@/utils/request'

export const getCommodityList = data => {
  return request({
    url: '/commodity/getCommodityList',
    method: 'post',
    data,
  })
}

export const delCommodity = rid => {
  return request({
    url: '/commodity/del?id=' + rid,
    method: 'delete',
  })
}

export const addCommodity = data => {
  return request({
    url: '/commodity/add',
    method: 'post',
    data,
  })
}